/**
 * 根据实际占的字符数，截取字符串
 * 
* 中文占2个字符，英文占1个字符，
* 截取字符串，根据 maxLength 截取后返回
* @param {*} str
* @param {*} maxLength
*/
cutStrByFullLength = (str = '', maxLength) => {
    let showLength = 0
    return str.split('').reduce((pre, cur) => {
      const charCode = cur.charCodeAt(0)
      if (charCode >= 0 && charCode <= 128) {
        showLength += 1
      } else {
        showLength += 2
      }
      if (showLength <= maxLength) {
        return pre + cur
      }
      return pre
    }, '')
  }